]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add an initial-setup mode
authorMatthias Clasen <mclasen@redhat.com>
Thu, 24 May 2012 03:37:09 +0000 (23:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 31 May 2012 13:52:14 +0000 (09:52 -0400)
Use the newly introduced kiosk mode functionality, and define an
'initial-setup' mode that is suitable for
https://live.gnome.org/GnomeOS/Design/Whiteboards/InitialSetup

https://bugzilla.gnome.org/show_bug.cgi?id=676697

js/ui/main.js
js/ui/sessionMode.js

index 6adcd03f4729492ca0c835631f6434827270d4da..8d7c48e19dba779865524facaa82d06183e91eb6 100644 (file)
@@ -99,6 +99,10 @@ function createGDMSession() {
                         });
 }
 
+function createInitialSetupSession() {
+    networkAgent = new NetworkAgent.NetworkAgent();
+}
+
 function _initRecorder() {
     let recorderSettings = new Gio.Settings({ schema: 'org.gnome.shell.recorder' });
     let bindingSettings = new Gio.Settings({ schema: 'org.gnome.shell.keybindings' });
index 124b876e6ec85f57777653898d5a1365e7e07b72..f4f171d9a3031b521457a801e6c30c3195ac39bc 100644 (file)
@@ -55,6 +55,28 @@ const _modes = {
              }
            },
 
+    'initial-setup': { hasOverview: false,
+                       hasAppMenu: false,
+                       showCalendarEvents: false,
+                       allowSettings: false,
+                       allowExtensions: false,
+                       allowKeybindingsWhenModal: false,
+                       hasRunDialog: false,
+                       hasWorkspaces: false,
+                       createSession: Main.createInitialSetupSession,
+                       extraStylesheet: null,
+                       statusArea: {
+                           order: [
+                               'a11y', 'keyboard', 'volume'
+                           ],
+                           implementation: {
+                               'a11y': imports.ui.status.accessibility.ATIndicator,
+                               'keyboard': imports.ui.status.keyboard.XKBIndicator,
+                               'volume': imports.ui.status.volume.Indicator
+                        }
+                }
+           },
+
     'user': { hasOverview: true,
               hasAppMenu: true,
               showCalendarEvents: true,